@layout("/common/_curd/_container.html"){

	<form data-url="${basePath}/${code}/save" method="post" class="form-horizontal" role="form">
		<!-- 表单 -->
		@ var _table="buy";
		@ var _col=[
		@			  {name:"商品", index:"product_id", type:"selectDiy",source:"Dict.diypro",value:pId!,newline:true,length:8,required:"required"},
		@			  {name:"数量", index:"num", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"进货时间", index:"date", type:"laydate",value:func.getTime(),newline:true,length:8,required:"required"},
		@			  {name:"供应商", index:"supp_id", type:"selectDiy",source:"Dict.diysupp",value:pId!,newline:true,length:8,required:"required"},
		@			  {name:"采购方", index:"school_id",type:"selectDiy",source:"Dict.diyschool",value:pId!,newline:true,length:8,required:"required"},
		@			  {name:"生产日期", index:"product_date", type:"laydate",newline:true,length:8,required:"required"},
		@			  {name:"生产批号", index:"product_code", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"检测报告编号", index:"checks", type:"text",newline:true,length:8},
		@			  {name:"检测报告图片", index:"pic",  type:"imgupload",newline:true,length:8,returnType:"id"}
		@		   ];
		@ include("/common/_curd/_add.html", {"col":_col, "table":_table}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_save:"新增", btn_close:"关闭"}) {}
	</form>

@}
